<?php
    /** 获取请求变量 */
    namespace app\index\controller;

    use think\Request;
    class Hello4
    {
        public function index(Request $request)
        {
            echo '请求参数：';
            dump($request->param());
            echo "name:" . $request->param('name');
        }
    }
?>